Vue.component('greeting', {
    template: `
    <p>{{name}},大家好
    <button @click = "changeName"> change name </button></p>`,
    data: function () {
        return {
            name: '你好'
        }
    },
    methods:{
        changeName:function(){
            this.name = 'herry'
        }
    }
})

new Vue({
    el: '#vue-app-one',

});
new Vue({
    el: '#vue-app-two',

});